package archer.framework.client.controller;

import archer.framework.protocol.result.ExecuteResultProcessor;
import archer.framework.utils.ServletUtils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author christ
 * @date 2016/5/16
 */
public class UIController extends ExecuteResultProcessor{

    /**
     * 获得当前请求线程对应的HttpServletRequest
     *
     * @return
     */
    public static HttpServletRequest getRequest() {

        return ServletUtils.getCurrentRequest();
    }

    /**
     * 获得当前请求线程对应的HttpServletResponse
     *
     * @return
     */
    public static HttpServletResponse getResponse() {

        return ServletUtils.getCurrentResponse();
    }
}
